package com.newtouch.fileupload.entity;

import com.newtouch.fileupload.model.VideoEO;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface VideoRepo extends PagingAndSortingRepository<VideoEO, String> {
    @Query(value = "{traceNo:?0}")
    VideoEO findByTraceNo(String traceNo);

    void deleteByTraceNo(String traceNo);
}